/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.lsp.lsp.compliance.impl;

import za.ac.cput.sevenpriciples.lsp.lsp.compliance.Employee;

/**
 *
 * @author 210227257
 */
public class DriverOverImp implements Employee{
    private String driverName;
    private String driverSurname;
    private int hoursWorked;
    private int overTimeHours;
    private static final int hourlyrate = 150;
    private final static int overtimeRate = 190;
    
    public DriverOverImp(String name, String surname, int hours, int overHours) {
        this.driverName = name;
        this.driverSurname = surname;
        this.hoursWorked = hours;
        this.overTimeHours = overHours;
    }
    /**
     * @return the driverName
     */
    @Override
    public String getDriverName() {
        return driverName;
    }

    /**
     * @param driverName the driverName to set
     */
    @Override
    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    /**
     * @return the driverSurname
     */
    @Override
    public String getDriverSurname() {
        return driverSurname;
    }

    /**
     * @param driverSurname the driverSurname to set
     */
    @Override
    public void setDriverSurname(String driverSurname) {
        this.driverSurname = driverSurname;
    }

    /**
     * @return the hoursWorked
     */
    @Override
    public int getHoursWorked() {
        return hoursWorked;
    }

    /**
     * @param hoursWorked the hoursWorked to set
     */
    @Override
    public void setHoursWorked(int hoursWorked) {
        this.hoursWorked = hoursWorked;
    }
    /**
     * @return the overTimeHours
     */
    public int getOverTimeHours() {
        return overTimeHours;
    }

    /**
     * @param overTimeHours the overTimeHours to set
     */
    public void setOverTimeHours(int overTimeHours) {
        this.overTimeHours = overTimeHours;
    }
    
    @Override
    public double salary(){
        return hoursWorked * hourlyrate + overTimeHours * overtimeRate;
    }

    
}
